import { Injectable } from '@nestjs/common';
import { JwtService } from "@nestjs/jwt"
@Injectable()
export class AuthService {
    constructor(private jwtService: JwtService) { }
    async createJwt(userId: string) {
        const token = await this.jwtService.signAsync({ userId })
        return {
            access_token: token,
        }
    }
}
